package com.xiyue.leaspring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xiyue.leaspring.service.IMessage;

public class TestMessageDemo {

	public static void main(String[] args) {
		// 启动Spring容器，实际开发中这一启动过程由web容器负责
		@SuppressWarnings("resource")
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring/spring-base1.xml");
		IMessage message = ctx.getBean("messageImpl",IMessage.class);
		System.out.println(message.echo("xiyueliushui"));

	}

}
